package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Attendance;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AttendanceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Attendance record);

    Attendance selectByPrimaryKey(Long id);

    List<Attendance> selectAll();

    int updateByPrimaryKey(Attendance record);

    int queryCount(QueryObject qo);

    List<Attendance> queryList(QueryObject qo);

    void changeState(Long id);

    //根据签到时间来查找签到对象
    Attendance selectBySignInDate(String date);

    Boolean selectSignInStateByDate(Date signInDate);

    void updatePatchTime(Attendance attendance);
}